package cn.zysuyuan.user.service;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.user.entity.User;
import cn.zysuyuan.user.entity.UserUpdate;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2019-11-25 16:36
 */
public interface UserService {
    void register(User user);


    User selectUser(String uName, String uPass);

    void updateUser(UserUpdate userUpdate);

    int queryUserName(String username);

    int queryNickName(String nickname);

    PageResult<User> selectAllUser(Map<String, Object> map);

    int resetPassword(String id);

    int deleteUser(String id);

    User getRoleList(String id);
}
